TARInspector 1.0 (a .tar file content inspector module for the NeXTSTEP Workspace Manager)
Copyright (C) 1993 Glenn Brown
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warrenty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/*Note: Don't be intimidated by the size of this file. It is so big because is has copious amounts of comments
You should read GeneralRef/19_WorkspaceManager/Classes/WMInspector.rtf before trying to understand this code. It's really simple, though: The workspace manager simply calls the ok: method whenever the user presses the ok ('Unarchive') button and calls revert: whenever the revert ('List Contents') button is pressed -OR- the workspace manager wants the inspector to update its display. The new method is called the first time TARInspector is used during a login session.*/
#import <mach/cthreads.h>
#import <stdio.h>
#import <mach/cthreads.h>
#import "TARInspector.h"
@implementation TARInspector
static id tarInspector = nil;
// I hate globals, but its in the
// GeneralRef/19_WorkspaceManager/Classes/WMInspector.rtf example and
// I say: if it ain't broke...
/***********
* new: This routine is based on the new routine found in
* the online developer documentation modified as noted. See